import './assets/main.css'

import { createApp } from 'vue'
import{createPinia}from 'pinia' //1.从Pinia插件中引入createPinia 函数

import App from './App.vue'
import router from './router'
//2.创建Pinis实例
const pinia=createPinia();
const app = createApp(App)

//3.通过use挂载方法pinia挂载到实例中
app.use(pinia)

app.use(router)

app.mount('#app')
